<?php
/* Lista los roles */
$sql = "SELECT users_roles.rid FROM {users_roles} WHERE users_roles.uid = $comment->uid";
$result = db_query($sql);
while ($data = db_fetch_object($result)) {
$role = $data->rid;
}

/*Determina el autor del hilo*/ 
$node = node_load(arg(1));
$node_author = ($node->uid);

if ($comment->uid == $node_author): $class='comment_author'; else: $class='comment'; endif;

?>
<br>
<div class="<?php echo $class ?><?php if ($comment->status == COMMENT_NOT_PUBLISHED) print ' comment-unpublished'; ?>">
<?php if ($new != '') { ?><span class="new"><?php print $new; ?></span><?php } ?>

<div id="comentarioc">

<div id="comentarioi">
<?php if ($comment->gravatar) { print $comment->gravatar; } elseif ($picture) { print $picture;echo $picture; } ?>

<div class="submitted">
<?php print t('!username', array('!username' => theme('username', $comment))); ?>
<br>
    <?php if ($role == "") {print ' <a href="/node/15104" title="¿Que significa ser Usuario"?><b>Usuario</b></a>';} ?>
    <?php if ($role > 2 and $role < 8) {print ' <a href="/node/15103" title="¿Que significa ser BOFH?"><b>BOFH</b></a>';} ?>
    <?php if ($role == 8) {print ' <a href="/node/15105" title="¿Que significa ser Colaborador?><b>Colaborador</b></a>';} ?>   
</div>

</div>

<div id="comentariod">   
<h3># <?php print $comment->cid; ?>: <?php print $title; ?></h3>
<div class="submitted">
<?php print t('Escrito el !date', array('!date' => format_date($comment->timestamp)));?>
</div>
<div class="content"><?php print $content; ?></div>
</div>

</div>


<div class="links">&raquo; <?php print $links; ?></div>




</div>
